package com.gdit.revenue.controller;


import com.gdit.revenue.base.result.Results;
import com.gdit.revenue.service.ChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
//定义控制器的访问形式/report
@RequestMapping("/chart")
public class ChartController {
    @Autowired
    ChartService chartServiceImpl;
    @RequestMapping("/getTemp")
    @ResponseBody
    public Results getTemp(){
        return  chartServiceImpl.countTemp();
    }

    @RequestMapping("/getTemp1")
    @ResponseBody
    public Results getTemp1(){
        return  chartServiceImpl.countTemp1();

    }

}
